package com.ccf.business.knowledge.model;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.common.utils.tool.UserUtil;
import com.service.mybatis.pojo.SuperEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;


/**
 * 标注任务关系标记
 *
 * @author ccf
 * @date 2022-02-15 16:56:10
 */
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
@NoArgsConstructor
@AllArgsConstructor
@TableName("kcs_label_data_entity")
@ApiModel(value="kcs_label_data_entity对象", description="标注任务关系标记")
public class LabelDataEntity extends SuperEntity {
    private static final long serialVersionUID=1L;
    /**
     * 默认bmeo文件存储文件夹
     */
    public static final String DEFAULT_BMEO_FOLDER = "bmeo";


    @ApiModelProperty(value = "标记任务id")
    private String dataId;

    @ApiModelProperty(value = "标记类型id")
    private String typeId;

    @ApiModelProperty(value = "标记内容")
    private String context;

    @ApiModelProperty(value="坐标，在正文中的位置",dataType = "Integer")
    private Integer startOffset;

    @ApiModelProperty(value="坐标，在正文中的位置",dataType = "Integer")
    private Integer endOffset;

    @ApiModelProperty(value = "创建人")
    @JSONField(label = UserUtil.USER_LABEL)
    @TableField(fill = FieldFill.INSERT)
    private String creator;
}
